﻿var fullPath = window.document.location.href;
var syName = window.document.location.pathname;
var directoryIndex=syName.lastIndexOf("view");
if(directoryIndex<0){
 directoryIndex=syName.lastIndexOf("/");
 }
var directory=syName.substring(0, directoryIndex);
var CLDJpos = fullPath.indexOf(syName);
var localhostPaht = fullPath.substring(0, CLDJpos);
if(directory.toString().substr(directory.toString().length-1,1)=="/"){
	directory=directory.toString().substr(0,directory.toString().length-1);
}
var CLDJServiceUrl =localhostPaht+directory+"/services";// localhostPaht+"services";
var CLDJUrl =directory;// localhostPaht;

document.writeln("<link rel='stylesheet' type='text/css' href='" + CLDJUrl + "/script/common/jquery-easyui-1.3.2/themes/default/easyui.css'>");
document.writeln("<link rel='stylesheet' type='text/css' href='" + CLDJUrl + "/script/common/jquery-easyui-1.3.2/themes/icon.css'>");
document.writeln("<link rel='stylesheet' type='text/css' href='" + CLDJUrl + "/css/easyui.sm.css'>");

document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/jquery-easyui-1.3.2/jquery-1.8.0.min.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/jquery-easyui-1.3.2/jquery.easyui.min.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/jquery.form.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/json2.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/jquery.query-2.1.7.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/common/function.js'></script>");
document.writeln("<script type='text/javascript' src='" + CLDJUrl + "/script/SmObjects.js'></script>");



